package com.yukang.guahao.controller;

import com.yukang.guahao.response.R;
import com.yukang.guahao.service.GroupService;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/api", produces = "application/json;charset=UTF-8")
public class GroupController {

   @GetMapping("/group")
   public R<String> getGroup() {
      String groupList = GroupService.getGroup();
      return R.success(groupList);
   }

}
